﻿<%@ Page Title="" Language="C#" MasterPageFile="~/System/MasterPage_Base.master"
    AutoEventWireup="true" CodeFile="WebSideConfig.aspx.cs" Inherits="System_WebsideConfig_WebSideConfig" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
    <link href="../Resources/Kindeditor/themes/default/default.css" rel="stylesheet"
            type="text/css" />
    <script src="../Resources/Kindeditor/kindeditor.js" type="text/javascript"></script>
    <script src="../Resources/Kindeditor/lang/zh_CN.js" type="text/javascript"></script>
    <script>
        KindEditor.ready(function(K) {
            var editor = K.editor({
                uploadJson: '../Resources/Kindeditor/App/image_upload_json.ashx',
                fileManagerJson: '../Resources/Kindeditor/App/image_manager_json.ashx',
                allowFileManager: true
            });
            K('#SelectImage').click(function() {
                editor.loadPlugin('insertfile', function() {
                    editor.plugin.fileDialog({
                        fileUrl: K('#<%= hf_WebsideLogo.ClientID %>').val(),
                        clickFn: function(url) {
                            K('#<%= img_WebsideLogo.ClientID %>').attr("src", url);
                            K('#<%= hf_WebsideLogo.ClientID %>').val(url);
                            editor.hideDialog();
                        }
                    });
                });
            });
        });
    </script>
    <style type="text/css">
        table
        {
            margin-bottom: 30px;
        }
        .td1
        {
            width: 100px;
            border: solid 1px #333333;
            background-color: #CCCCCC;
        }
        .td2
        {
            width: 440px;
            border: solid 1px #333333;
            padding: 5px;
        }
        .td3
        {
            width: 100px;
            border: solid 1px #333333;
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="Server">
    网站信息设置
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">

    <table border="0" style="border-collapse: collapse;">
        <tr>
            <td class="td1">
                网站名称
            </td>
            <td class="td2">
                <asp:TextBox ID="txt_WebSideName" runat="server" CssClass="TextBox" Width="400" MaxLength="500" Text=""></asp:TextBox>
            </td>
            <td class="td3">
                <asp:Button ID="btn_WebSideName" CommandName="WebSideName" runat="server" Text="提交" 
                    CssClass="Button" onclick="btn_Submit_Click"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                
            </td>
        </tr>
    </table>
    
    <table border="0" style="border-collapse: collapse;">
        <tr>
            <td class="td1">
                网站Logo
            </td>
            <td class="td2">
                <asp:Image ID="img_WebsideLogo" runat="server" width="320" Height="100"/>
                <input id="SelectImage" type="button" value="选择图片" Class="Button" />    
                <asp:HiddenField ID="hf_WebsideLogo" runat="server" />  
            </td>
            <td class="td3">
                <asp:Button ID="btn_WebsideLogo" CommandName="WebsideLogo" runat="server" Text="提交" CssClass="Button" onclick="btn_Submit_Click"/>                
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span style="color:Gray;">建议图片大小400*100</span>
            </td>
        </tr>
    </table>
    
    <table border="0" style="border-collapse: collapse;">
        <tr>
            <td class="td1">
                网站关键字
            </td>
            <td class="td2">
                <asp:TextBox ID="txt_Keywords" runat="server" CssClass="TextBox" Width="400" MaxLength="500" Text=""></asp:TextBox>
            </td>
            <td class="td3">
                <asp:Button ID="btn_Keywords" CommandName="Keywords" runat="server" Text="提交" CssClass="Button" onclick="btn_Submit_Click"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span style="color:Gray;">网站搜索引擎关键字，可以输入多个关键字，并用","(英文逗号)隔开</span>
            </td>
        </tr>
    </table>
    
    <table border="0" style="border-collapse: collapse;">
        <tr>
            <td class="td1">
                网站描述
            </td>
            <td class="td2">
                <asp:TextBox ID="txt_Description" runat="server" CssClass="TextBox" Width="400" Height="100"
                  Text="" TextMode="MultiLine"></asp:TextBox>
            </td>
            <td class="td3">
                <asp:Button ID="btn_Description" CommandName="Description" runat="server" Text="提交" CssClass="Button" onclick="btn_Submit_Click"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span style="color:Gray;">网站搜索引擎关优化描述</span>
            </td>
        </tr>
    </table>
    
    <table border="0" style="border-collapse: collapse;">
        <tr>
            <td class="td1">
                网站底部文字1
            </td>
            <td class="td2">
                <asp:TextBox ID="txt_Fooder1" runat="server" CssClass="TextBox" Width="400" MaxLength="500" Text=""></asp:TextBox>
            </td>
            <td class="td3">
                <asp:Button ID="btn_Fooder1" CommandName="Fooder1" runat="server" Text="提交" CssClass="Button" onclick="btn_Submit_Click"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
    </table>
    
    <table border="0" style="border-collapse: collapse;">
        <tr>
            <td class="td1">
                网站底部文字2
            </td>
            <td class="td2">
                <asp:TextBox ID="txt_Fooder2" runat="server" CssClass="TextBox" Width="400" MaxLength="500" Text=""></asp:TextBox>
            </td>
            <td class="td3">
                <asp:Button ID="btn_Fooder2" CommandName="Fooder2" runat="server" Text="提交" CssClass="Button" onclick="btn_Submit_Click"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
    </table>
    
    <table border="0" style="border-collapse: collapse;">
        <tr>
            <td class="td1">
                联系电话
            </td>
            <td class="td2">
                <asp:TextBox ID="txt_Phone" runat="server" CssClass="TextBox" Width="400" MaxLength="500" Text=""></asp:TextBox>
            </td>
            <td class="td3">
                <asp:Button ID="btn_Phone" CommandName="Phone" runat="server" Text="提交" CssClass="Button" onclick="btn_Submit_Click"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
    </table>
</asp:Content>
